﻿define([
    'Xjs/core/util',
    'Xjs/ui/table/Table'
],
function (util, Table) {
    'use strict';

    var type = 'grid',
    Grid = Xjs.getType(type);

    if (Grid) { // It has been already loaded
        return Grid;
    }

    Grid = util.define({
        base: Table,
        construct: function (conf, parent) {
            Grid.base.constructor.call(this, conf, parent); // Call the base constructor
        },
        type: type
    });

    Xjs.registerType(Grid);

    return Grid;
});